﻿using System;
using System.Collections.Generic;

namespace WorkLogger.Client {
	public class WorkedTimeReport {
		public IEnumerable<WorkDayReportItem> WorkedDays { get; set; }

		/// <summary>
		/// Всего отработано за период.
		/// </summary>
		public TimeSpan TotalWorkedTime { get; set; }

		/// <summary>
		/// Совокупный доход.
		/// </summary>
		public decimal TotalIncome { get; set; }

		public class WorkDayReportItem {
			public DateTime WorkDate { get; set; }
			public TimeSpan StartWork { get; set; }
			public TimeSpan LunchTime { get; set; }
			public TimeSpan EndWork { get; set; }
			public TimeSpan WorkedTime { get; set; }

			/// <summary>
			/// Доход за день.
			/// </summary>
			public decimal Income { get; set; }
		}
	}
}